package cn.lyj.study.service;

import cn.lyj.study.mapper.FoodMapper;
import cn.lyj.study.pojo.Food;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FoodServiceImpl implements FoodService {
    @Autowired(required = false)
    FoodMapper foodMapper;
    @Override
    public List<Food> getAllFood() {
        return foodMapper.getAllFood();
    }
}
